package router

import (
	"github.com/gin-gonic/gin"
	"zg6/o2-o-takeaway-backend-system/api/internal/handler"
)

func LoadRouter(r *gin.Engine) {
	apiRouter := r.Group("/api")
	{
		noticeRouter := apiRouter.Group("/notice")
		{
			noticeRouter.GET("/ws", handler.Ws)
			noticeRouter.POST("/send", handler.SendNotice)
		}
	}
}
